﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BTechBids.DataModels
{
    public class Win
    {
        public int Id { get; set; }
        public int ItemId { get; set; }
        public int BidId { get; set; }
        public string ApplicationUserId { get; set; }
        public DateTime Timestamp { get; set; }
        public double BidPrice { get; set; }
        public bool WasPurchased { get; set; }
        public virtual Item Item { get; set; }
        public virtual Bid bid { get; set; }
        public virtual ApplicationUser ApplicationUser { get; set; }

        public Win()
        {

        }
        public Win(int itemid, string applicationuserid, int bidid, double bidprice)
        {
            ItemId = itemid;
            ApplicationUserId = applicationuserid;
            BidId = bidid;
            BidPrice = bidprice;
            WasPurchased = false;
            Timestamp = DateTime.Now;
        }
    }
}
